/*
 * Copyright (c) 2018.
 * 北京九思金信科技有限公司对该文件内容保留所有权利。
 * 未经许可，不得私自拷贝、传播、发布、引用该文件内容，违者将被追究法律责任。
 */

import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "MainFrame",
      component: () => import('@/pages/pc/components/MainFrame'),
      props: route => route.query
    },
    {
      path: "/message",
      name: "MessageCenter",
      component: () => import('@/pages/pc/components/message/MessageCenter')
    },
    {
      path: "/messageTemplate",
      name: "MessageTemplate",
      component: () => import('@/pages/pc/components/message/MessageTemplate')
    },
    {
      path: "/messageType",
      name: "MessageType",
      component: () => import('@/pages/pc/components/message/MessageType')
    },
    {
      path: "/messageTemplateType",
      name: "MessageTemplateType",
      component: () => import('@/pages/pc/components/message/MessageTemplateType')
    },
    {
      path: "/messageTemplateKey",
      name: "MessageTemplateKey",
      component: () => import('@/pages/pc/components/message/MessageTemplateKey')
    },
    {
      path: "/dashboard",
      name: "Dashboard",
      component: () => import('@/pages/pc/components/Dashboard')
    },
    {
      path: "/dashboardDesign",
      name: "DashboardDesign",
      component: () => import('@/pages/pc/components/DashboardDesign')
    },
    {
      path: "/homePage",
      name: "HomePage",
      component: () => import('@/pages/pc/components/HomePage')
    },
    {
      path: "/operationLog",
      name: "OperationLog",
      component: () => import('@/pages/pc/components/log/OperationLog')
    },
    {
      path: "/overdue",
      name: "Overdue",
      component: () => import('@/pages/pc/components/Overdue')
    },
    // 首页布局模拟数据 --start
    {
      path: "/homePageBusi",
      name: "HomePageBusi",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageBusi')
    },
    {
      path: "/homePageContract",
      name: "HomePageContract",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageContract')
    },
    {
      path: "/homePageCustomer",
      name: "HomePageCustomer",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageCustomer')
    },
    {
      path: "/homePageHistory",
      name: "HomePageHistory",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageHistory')
    },
    {
      path: "/homePageLoan",
      name: "HomePageLoan",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageLoan')
    },
    {
      path: "/homePageNeedWork",
      name: "HomePageNeedWork",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageNeedWork')
    },
    {
      path: "/homePagePro",
      name: "HomePagePro",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePagePro')
    },
    {
      path: "/homePageSaas",
      name: "HomePageSaas",
      component: () => import('@/pages/pc/components/HomePageDemo/HomePageSaas')
    }
    // 首页模拟数据 --end
  ]
});
